Skip to content

test: make the hard-kill scenario immune to SIGINT timing - #7

Merged
Luminger merged 1 commit into
mainfrom
fix/flaky-hard-kill-test
Oct 12, 2026
Merged

Luminger merged 1 commit into
mainfrom
fix/flaky-hard-kill-test

Conversation

@Luminger

Copy link
Copy Markdown
Owner

Test [6] simulated an uninterruptible cell with try/except KeyboardInterrupt
around time.sleep. A SIGINT landing on the loop condition escaped the try, the
cell ended on its own and the hard kill never happened, so result.killed was
undefined and the kernel kept its pid (macOS, Python 3.14, CI run 38224762826).
The cell now installs a no-op SIGINT handler, which swallows every interrupt
wherever it lands.

Test [6] simulated an uninterruptible cell with try/except KeyboardInterrupt
around time.sleep. A SIGINT landing on the loop condition escaped the try, the
cell ended on its own and the hard kill never happened, so result.killed was
undefined and the kernel kept its pid (macOS, Python 3.14, CI run 38224762826).
The cell now installs a no-op SIGINT handler, which swallows every interrupt
wherever it lands.
@Luminger
Luminger merged commit 24f7791 into main Oct 12, 2026
19 checks passed
@Luminger
Luminger deleted the fix/flaky-hard-kill-test branch October 12, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant